package cn.byapps.hw.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import javax.persistence.*;

/**
 * HomeworkFile
 */
@Entity
@DiscriminatorValue("A")
@Data
public class HomeworkFile extends StudentFile {

    @Column(name = "score", length = 10)
    private Integer score;// 成绩
    private String comment = "";// 评语
    @Column(name = "sId", length = 20)
    private String sId;// 学生学号Id

    @JsonIgnore
    @ManyToOne
    @JoinColumn(name = "homework_id")
    private Homework homework;

}